home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2005 March
/
CMCD0305.ISO
/
Software
/
Freeware
/
Programare
/
nvu
/
nvu-0.80-win32-installer-full.exe
/
{app}
/
chrome
/
help.jar
/
content
/
help
/
toolbarCustomization.js
< prev
Wrap
Text File
|
2005-01-28
|
1KB
|
37 lines
function CustomizeToolbar(id)
{
var customizePopup = document.getElementById("cmd_CustomizeToolbars");
customizePopup.setAttribute("disabled", "true");
window.openDialog("chrome://help/content/customizeToolbar.xul", "CustomizeToolbar",
"chrome,all,dependent", document.getElementById(id));
}
function ToolboxCustomizeDone(aToolboxChanged)
{
var customizePopup = document.getElementById("cmd_CustomizeToolbars");
customizePopup.removeAttribute("disabled");
if (this.UpdateToolbar != undefined)
UpdateToolbar(focus);
var sidebarButton = document.getElementById("help-sidebar-button");
var strBundle = document.getElementById("bundle_help");
if (document.getElementById("helpsidebar-box").hidden) {
sidebarButton.label = strBundle.getString("showSidebarLabel");
} else {
sidebarButton.label = strBundle.getString("hideSidebarLabel");
}
}
function UpdateToolbar(caller)
{
document.commandDispatcher.updateCommands('help-toolbar');
var customizePopup = document.getElementById("cmd_CustomizeToolbars");
customizePopup.removeAttribute("disabled");
var observerService = Components.classes["@mozilla.org/observer-service;1"].getService(Components.interfaces.nsIObserverService);
observerService.notifyObservers(window, "help:updateToolbarItems", null);
}